<!DOCTYPE html>
<html>
<head>
    <style type="text/css">
        @-webkit-viewport {
            width: 300px;
        }
    </style>
    <script type="text/javascript">
        function load() {
            var result = document.getElementById("result");
            result.innerHTML = "window.innerWidth should be equal to 300. Got ";
            result.innerHTML += window.innerWidth;
            if (window.testRunner)
                testRunner.notifyDone();
        }
    </script>
</head>
<body onload="load()">
    <div id="result">
        </p>
    </div>
</body>
</html>
